package day14.homework02.test03;

import java.util.concurrent.ArrayBlockingQueue;

/**
 * @author Xiao
 * @date 2021/8/7
 */
public class Test03 {
    /**
     * 3. 使用wait和notify完成吃汉堡的案例
     */
    public static void main(String[] args) {
        Desk desk = new Desk();
        Foodie f = new Foodie(desk);
        Cooker c = new Cooker(desk);
        Thread t1 = new Thread(f);
        Thread t2 = new Thread(c);
        t1.start();
        t2.start();
    }
}
